import Video from '../../../components/VideoWitness'
import { connect } from 'dva'
const VideoWitness = ({dispatch}) => {
  const submit = () => {
    dispatch({
      type: 'modules/getModules',
      payload: {
        title: '重置交易密码',
        process: 'resetPassword',
        pathname: '',
        tokenId: 'test',
        businessId: '1231241206',
      }
    })
  }
  const oneWayVideo = () => {
    dispatch({
      type: 'modules/getModules',
      payload: {
        title: '重置交易密码',
        process: 'resetPassword',
        pathname: '',
        tokenId: 'test',
        businessId: '1231241205-1',
      }
    })
  }
  const videoData = {
    submit,
    oneWayVideo
  }
  return (
    <Video {...videoData}></Video>
  )
}

export default connect(state => state.reset)(VideoWitness)